//
//  JSWebControllerManager.h
//  JSWebDemo
//
//  Created by ac-hu on 2018/7/6.
//  Copyright © 2018年 ac-hu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "JSWebController.h"

@interface JSWebControllerManager : NSObject
/**
 存放所有已用于显示的web的控制器
 */
@property (nonatomic, strong) NSMutableArray * controllers;

///**
// 预加载的web控制器,未用于显示视图
// */
//@property (nonatomic, strong) NSMutableDictionary * advancedControllers;

+(instancetype)share;

+(void)remove:(UIViewController *)vc;
+(void)addContrllor:(UIViewController *)vc;
+(JSWebController *)currentVC;
+(void)popViewController;

+(void)popToRootViewController;

+(void)popToViewController:(UIViewController *)viewController;

+(void)nextPageWithUrl:(NSString *)url type:(NSInteger)type callback:(NSString *)callback;
@end
